package com.jk.web.service.hystrix;

import com.jk.common.model.ChinaAddressBean;
import com.jk.common.model.FlowerBean;
import com.jk.common.model.OrderBean;
import com.jk.web.service.OrderService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderServiceHystrix implements OrderService {
    @Override
    public String createOrder(String productId) {
        return "创建订单失败";
    }

    @Override
    public List<ChinaAddressBean> getProviceBind(Integer pid) {

        System.out.println("地区表获取失败");
        return new ArrayList<>();
    }

    @Override
    public OrderBean orderNumber(String orderNumber) {
        return new OrderBean();
    }

    @Override
    public void saveOrder(String orderNumber) {
    }

    @Override
    public FlowerBean queryFlowerPrice(Integer flowerId) {
        System.out.println("鲜花价格查询失败");
        return new FlowerBean();
    }

}
